import request from '@/utils/request'


export function addAirFile(query) {
  return request({
    url: '/common/airupload/addfile',
    method: 'get',
    params: query
  })
}

export function delAirFile(fileId) {
  return request({
    url: '/common/airupload/delfile/' + fileId,
    method: 'delete'
  })
}

export function getAutoNum() {
  return request({
    url: '/common/airupload/getAutoNum',
    method: 'get'
  })
}

export function getUserDeptId() {
  return request({
    url: '/common/airupload/getUserDept',
    method: 'get'
  })
}

export function getUserName(){
  return request({
    url: '/common/airupload/getUserName',
    method: 'get'
  })
}

export function getFile(params){
  return request({
    url: '/common/airupload/getfile',
    method: 'get',
    params:params,
    responseType:"blob"
  })
}